package com.investment.action;

import com.sun.xml.internal.ws.developer.UsesJAXBContext;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by veicth on 17/2/24.
 */
@Controller
public class login {
    /**
     * 登录页面
     * @return
     */
    @RequestMapping("/login")
    public String login(){
        return "login/login_index";
    }

    @RequestMapping("/loginTrue")
    public String loginTrue(String username,String password){
        if(username.contains("root") && password.contains("123")){
            return "login/success";
        }else {
            return "login/error";
        }
    }

}